<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			*{
				padding: 0;
				margin: 0;
			}
			@keyframes dongHua{
				0%{
					transform: rotateZ(30deg);
				}
				20%{
					transform: rotateZ(-30deg);
				}
				40%{
					transform: rotateZ(30deg);
				}
				60%{
					transform: rotateZ(-30deg);
				}
				80%{
					transform: rotateZ(30deg);
				}
				100%{
					transform: rotateZ(-30deg);
				}
			}
			.box{
				margin: 50px;
				width: 50px;
				height: 50px;
				background-color: plum;
				border-radius: 10px;
				/*执行动画：*/
				animation:dongHua 2s linear alternate infinite;
			}
		</style>
	</head>
	<body>
		<div class="box"></div>
	</body>
</html>
